home *** CD-ROM | disk | FTP | other *** search
- /* From C Puzzle Book page 23 */
- #define PR(format,value) printf("value=%format\t",(value))
- #define NL putchar('\n')
-
- #define PRINT1(f,x1) PR(f,x1), NL
- #define PRINT2(f,x1,x2) PR(f,x1), PRINT1(f,x2)
- #define PRINT3(f,x1,x2,x3) PR(f,x1), PRINT2(f,x2,x3)
- #define PRINT4(f,x1,x2,x3,x4) PR(f,x1), PRINT3(f,x2,x3,x4)
-
- PRINT1(d,5);
- PRINT4(d,1,2,3,4);
-